package win.demonlegion.service;

import org.quartz.Scheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import win.demonlegion.quartz.job.DemoTask;
import win.demonlegion.service.inte.QuartzService;

@Service("quartzService")
public class QuartzServiceImpl implements QuartzService {
    @Autowired
    private Scheduler scheduler;

    @Override
    public void demoQuartzEvent() {
        DemoTask demoTask = new DemoTask();
        demoTask.start(scheduler);
    }
}
